<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		
		<script src="<c:url value='/resources/js/validacoes/login.js'/>"></script>
		
		<link href="<c:url value='/resources/css/custon_login.css'/>" rel="stylesheet">
	
		<title>Novo Contato</title>
	</head>
	<body>
		<div class="container">
			<a href="<c:url value='/contato/listar'/>" class="btn btn-default">Lista de Contatos</a>
			<hr>
			<form role="form" action="<c:url value='/contato/salvar'/>" method="post" id="formCadastroContato" class="form">
			
			<c:if test="${contato != null}">
				<input type="hidden" name="id" value="${contato.id}">
			</c:if>
				
				<jsp:include page="../../util/contato_include.jsp"/>
					
				<hr />				
				<button type="submit" class="btn btn-default">Salvar</button>
			</form>	
		</div>

	</body>
</html>